package com.jic.market.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/6/30
 */
@Data
public class MemberGradeInfoRequest implements Serializable {

    @Valid
    @NotEmpty(message = "活动id不能为空")
    @ApiModelProperty(notes = "活动id", required = true)
    private String promotionId;

    @Valid
    @NotEmpty(message = "活动编码不能为空")
    @ApiModelProperty(notes = "活动编码", required = true)
    private String promotionCode;

    @Valid
    @NotEmpty(message = "活动类型不能为空")
    @ApiModelProperty(notes = "活动类型", required = true)
    private Integer promType;

    @Valid
    @NotEmpty(message = "活动子类型不能为空")
    @ApiModelProperty(notes = "活动子类型", required = true)
    private Integer frontPromType;


    @Valid
    @NotNull(message = "等级详情不能为空")
    @ApiModelProperty(notes = "等级详情")
    private List<PromotionMemberGradeRequest> promotionMemberGradeList;

}
